﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MyLibrary.ThreeLayer.DataAccess.Enum
{
    public enum ColumnType
    {
        String,
        Int,
        Float,
        DateTime,
        LargText
    }
    /// <summary>
    /// 表连接类型 
    /// </summary>
    public enum JoinType
    {
        /// <summary> 左连接 </summary>
        LeftJoin,
        /// <summary> 右连接 </summary>
        RightJoin,
        /// <summary> 内连接 </summary>
        InnerJoin
    }

    /// <summary>
    /// 主键类型
    /// </summary>
    public enum PrimaryKeyType
    {
        /// <summary> 自增长 </summary>
        Identity,
        /// <summary> GUID </summary>
        Guid,
        /// <summary> 顺序 </summary>
        Sequence,
        /// <summary> 无类型 </summary>
        None
    }

    public enum RelationType
    {
        OneToOne,
        OneToMany,
        ManyToOne,
        ManyToMany
    }

    public enum ConditionOperator
    {
        Equal,
        NotEqual,
        LessThan,
        MoreThan,
        LessEqual,
        MoreEqual,
        Between,
        NotBetween,
        Like,
        NotLike,
        IsNull,
        IsNotNull,
        In,
        NotIn,
        And,
        Or,
        LeftBracket,
        RightBracket
    }

    internal enum SqlToken
    {
        Select,
        From,
        Join,
        LeftJoin,
        RightJoin,
        On,
        Where,
        OrderBy,
        Union
    }

    /// <summary>
    /// 数据适配器类型
    /// </summary>
    public enum ProviderType
    {
        SqlServer2005,
        MySQL,
        Oracle,
        OleDb,
        Odbc
    }

    internal enum FunctionType
    {
        None,
        Count,
        Max,
        Min
    }


}
